How Gravity Affects Time